import java.util.Random;

public class Dice {
	private int value;
	private Random generate = new Random();
	
	public void Roll(){
		this.setValue(generate.nextInt(6)+1);
	}

	public void setValue(int value) {
		this.value = value;
	}

	public int getValue() {
		return value;
	}
}
